<?php

include "Teacher.php";
include "student.php";

$t1=new Teacher();
$t1->name="张三";
$t1->sex="男";
$t1->age=18;
$t1->self_t();
echo "<br>";

$t2=new Teacher();
$t2->name="李四";
$t2->sex="男";
$t2->age=18;
$t2->self_t();
echo "<br>";

$stu1=new student();
$stu1->name="王五";
$stu1->sex="保密";
$stu1->age="18";
$stu1->self();
echo "<br>";

$stu2=new student();
$stu2->name="孙六";
$stu2->sex="男";
$stu2->age="18";
$stu2->self();